$(function () {
    setUser();
})

function setUser() {
    $.ajax({
        url: '/back/user/manange',
        data: '',
        type: 'get',
        dataType: 'json',
        success: function (data) {
            if(data.username==null){
                window.open("/back/login.html");
            }else {
                $("#username").html(data.username);
            }
        }
    })

}